Digital preoperative planning